package com.ludomancy.sora;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;

import com.ludomancy.gamelib.WorldScreenProjection;
import com.ludomancy.gamelib.verlet.Simulation;

public class SoraSimulation extends Simulation
{
	public SoraSimulation()
	{
		super(Game.GRAVITY, Game.AIR_FRICTION);
	}
	
	protected void paint(Graphics g, WorldScreenProjection proj)
	{
		Graphics2D g2 = (Graphics2D) g;
		RenderingHints rh = g2.getRenderingHints();
		g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);
		g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED);
		
		g.setColor(new Color(0x020202));
		for (int i = 0; i < objCounter; i++)
		{
			objs[i].paint(g, proj);
		}
		g2.setRenderingHints(rh);
	}
}
